package org.zjx.analysis.analyze.tap;


import org.zjx.command.util.ImageUtil;
import org.zjx.window.window.IWindow;

import java.awt.*;
import java.awt.image.BufferedImage;
import java.util.Arrays;
import java.util.Collections;

public class HJHGSTabAnalysis extends BaseTabAnalysis{

    public HJHGSTabAnalysis(IWindow window) {
        super("幻境花果山",window);
    }

    @Override
    public Rectangle getContentArea() {
        return ImageUtil.createRect(10, 80, 369, 407);
    }

    @Override
    protected void initResources() {

    }

    @Override
    public Rectangle closeArea() {
        return null;
    }

    @Override
    public Rectangle getOriginBounds() {
        return ImageUtil.createRect(172, 68, 626, 505);
    }

    @Override
    public Rectangle getRefImageArea() {
        return ImageUtil.createRect(193, 24, 260, 37);
    }

    @Override
    public BufferedImage getRefImage() {
        BufferedImage bufferedImage =  ImageUtil.createImage("iVBORw0KGgoAAAANSUhEUgAAAEQAAAAOCAYAAACW0Lq4AAAFpklEQVR42pVWCVNTSRDOH9sCrFqPXVcFOYxhKfDiUAFRgoqblCFoCWQTQOVI5AgEATkFQgwKUkQEL1xYrCByyS4iLKggLJSrva/7ZYb3SOToqq9ed0/PdPc38+Y9hV+wGRBBx22QoGkGZm+GXapiSNa3kv5D0BpCom9DZn6XzCeFX1A+PfdFlUNZbZ9sLCKhBnKLH8vjJTnD4irh1KWmDXCX+tisdlwH4as+BQvq7ZuExaVV0s+m2cGXfPnyFfZGWilGa7hPPqbjfMT8x2XyD7jfc5+1Rmw8/NRtKCzvBbOtF7qejFNcoe0px/DYP+QzVzwlFNqeQHB0BeWISLwDW5UDR8s3JGR0Yh6GRmZ9jin8QyyAQMEdQz1KSF5U9RyKq9dgq39JManXnBSjM7WTjfqlzDZqHOXbNyB9YXGFbNRLq5/Ryci2uGC7ctnYTjmS0x08n7Tm5gdubu88JPqOq+u5T3W6WjYHMTn1CUbfzsuI2BFqoXmKgOBCSNKJJyLwiBVybj0iHf0MuAg+US4KhOyLLAVn52uyEzVNkCycqMy8TlhZ/Q9WBWTkPYSZuc80jro++z74B+cTKQwJmka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paV8fHP35ahuizNh7j6n0DpoIHHOwHUurrfjoqEtI3MCnc+q/IGZVgpUU6XENQffe5F0lHE8tkTRw8Uigbz7rh5E2vl/O6Wj52QV/HCWEYGZ/1mrP4eYXG6u3iXzLWuJ7EZueAbKfThU3ET3GOWST3j8G/tnzvIOkKaVHrEXAgC+LUNjinvQO7Q00+Y1KERg9HW3yOhR4tgMjTxfCzMgf892Vw7A41Qkauwyv+F9V1OBJfQnNQ36g2hOGmE04klW0atx38D3XJt5U5XhS4AAAAAElFTkSuQmCC");
        return ImageUtil.makeColorsTransparent(bufferedImage, Collections.singletonList(Color.WHITE));
    }
}
